package com.example.activiti7.domain.model.req;

import io.swagger.v3.oas.annotations.media.Schema;

import java.util.Map;

@Schema(description = "启动实例请求对象")
public class StartInstanceReq extends BaseRequest {
    @Schema(description = "流程定义ID", required = true, requiredMode = Schema.RequiredMode.REQUIRED)
    private String processDefinitionId;
    //    @Schema(description =  "流程定义Key,支持流程定义key启动，如果同时存在processDefinitionId,默认以流程定义ID启动")
//    private String processDefinitionKey;
    @Schema(description = "业务key")
    private String businessKey;
    @Schema(description = "启动流程的用户")
    private String startUserId;
    @Schema(description = "流程变量信息")
    private Map<String, Object> variables;

    public String getProcessDefinitionId() {
        return processDefinitionId;
    }

    public void setProcessDefinitionId(String processDefinitionId) {
        this.processDefinitionId = processDefinitionId;
    }

    public String getBusinessKey() {
        return businessKey;
    }

    public void setBusinessKey(String businessKey) {
        this.businessKey = businessKey;
    }

    public String getStartUserId() {
        return startUserId;
    }

    public void setStartUserId(String startUserId) {
        this.startUserId = startUserId;
    }

    public Map<String, Object> getVariables() {
        return variables;
    }

    public void setVariables(Map<String, Object> variables) {
        this.variables = variables;
    }
}